package com.biostime.qdingding.modules.qd.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.entity.Member;
import com.biostime.qdingding.modules.qd.entity.Student;


/**
 * 会员用户Dao
 * @author king
 * @version 2015-11-12
 */
@MyBatisDao
public interface StudentDao extends CrudDao<Student> {
	
	public Student getfornm(Student student);
	//查询最新学生code
	public String getNowCode();
	
	public List<Student> findListByMobile(Student entity);
	
	public List<Student> findListByName(Student entity);
	
	public List<Student> findContractStatusStudent(Student student);
	/* ====================================================================
	 * 华丽分割线
	 * ====================================================================*/
	
	public List<Student> apiGetStudentByMember(Member member);
	
	public HashMap<String,Object> apiGetDate(@Param("studentId")String studentId,@Param("date")Date date);
	
	public Student apiGetStudentById(String studentId);
}